package com.yanyu.space.common.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author yanyu
 */
@Data
@ConfigurationProperties(prefix = "space.log")
public class LogProperties {

    private Web web = new Web();

    private Sender sender = new Sender();

    private Processor processor = new Processor();

    @Data
    public static class Web {
        private List<String> excludePatterns;
        private List<String> includePatterns;
    }

    @Data
    public static class Sender {
        private String topic;

        private String serversAddr;
    }

    @Data
    public static class Processor {
        private Integer concurrency;
    }
}
